home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
extenbat.arc
/
DIAL.BAT
< prev
next >
Wrap
DOS Batch File
|
1984-02-27
|
2KB
|
73 lines
bat * Dialing driver for PC-TALK ... (enter "DIAL ?" for help)
bat cls
bat if %1 <> ? goto -nohelp |* See if user wants help message.
bat begtype
==== DIALING DRIVER FOR PC-TALK.====================================
Format:
DIAL number {R}
Where:
number - If this is a one or two digit number, this selects the
entry number from the internal dialing directory (previously
saved). If greater than 2 digits, this is used directly as a
phone number to dial.
R (optional) - Selects repeated dialing mode. (continues to dial
until computer answers)
end
bat exit
bat -nohelp
bat if .%1 = . call -getnumber | * if not passed, get dialing info
bat %3 = %1 # | * get length of string
bat if %3 < 3 call -validate | * if menu #, validate
bat * insert into keyboard stack a startup of PC-talk, carriage return,
bat * line feed, alt-D
bat begstack
PC-TALK
\00\20;
end
bat if %3 > 2 stack M | skip 2 | * if special #, insert M
bat %4 = %1 - 1| %4 = %4 / 15 | * else calculate # menus to jump
bat call -getmenu | * position on right menu
bat stack %1 | * insert # to dial
bat if %2 = R call -rptmode | * if requested, put in repeat dial mode
bat exit | * exit to DOS, stack starts PC-TALK program.
bat ***********************
bat *** Subroutines ***
bat ***********************
bat -getnumber
bat type | read Please enter # to dial: %1
bat type | inkey DIAL R(epeatedly until answered)...1(time)=<Rtn> (R,1): %2
bat -chk if %2 <> KEY00D if %2 <> R if %2 <> 1 beep|inkey %2| goto -chk
bat if %2 = KEY00D %2 = 1
bat type %2
bat return
bat -validate
bat if %1 > 0 if %1 < 61 return
bat cls beep type your entry of %1 is an
bat read . INVALID menu #: please RE-ENTER (1-60): %1
bat goto -validate
bat -getmenu
bat if %4 < 1 return
bat %4 = %4 - 1
bat stack F
bat goto -getmenu
bat -rptmode
bat * insert slight delay, K to stop dial, alt-Q to make repeat
bat begstack
\ff\02K\00\10;
end
bat return